import request from '/@/utils/request';

/********** 登录 **********/
/**
 * 用户登录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const login = (params: object) => {
	return request({
		url: '/admin/login',
		method: 'post',
		data: params,
	});
};
/**
 * 修改用户信息
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const personalInformationUpdate = (params: object) => {
	return request({
		url: '/admin/personal_information_update',
		method: 'post',
		data: params,
	});
};

/********** 振兴目标 **********/
/**
 * 分配商品【新】
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const targetGoodsAdd = (params: object) => {
	return request({
		url: '/admin/target_goods_add',
		method: 'post',
		data: params,
	});
};

/********** 单位机构管理 **********/
/**
 * 移除机构用户
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const mechanismUserDelect = (params: object) => {
	return request({
		url: '/admin/mechanism_user_delect',
		method: 'post',
		data: params,
	});
};
/**
 * 导入文件记录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const mechanismUserImportFile = (params: object) => {
	return request({
		url: '/admin/mechanism_user_import_file',
		method: 'get',
		params: params,
	});
};
/**
 * 导入文件记录详情
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const mechanismUserImportFileDetails = (params: object) => {
	return request({
		url: '/admin/mechanism_user_import_file_details',
		method: 'get',
		params: params,
	});
};

/********** 物业公司管理 **********/
/**
 * 物业公司启用/禁用
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const propertyDisableEnable = (params: object) => {
	return request({
		url: '/admin/property_disable_enable',
		method: 'post',
		data: params,
	});
};

/********** 商品库存管理 **********/
/**
 * 选择商品分类
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsSelectClass = (params: object) => {
	return request({
		url: '/admin/goods_select_class',
		method: 'get',
		params: params,
	});
};
/**
 * 选择供应商
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsSelectSupplier = (params: object) => {
	return request({
		url: '/admin/goods_select_supplier',
		method: 'get',
		params: params,
	});
};
/**
 * 选择标签
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsTagsList = (params: object) => {
	return request({
		url: '/admin/goods_tags_list',
		method: 'get',
		params: params,
	});
};
/**
 * 添加商品
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsAdd = (params: object) => {
	return request({
		url: '/admin/goods_add',
		method: 'post',
		data: params,
	});
};
/**
 * 复制商品
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsCopy = (params: object) => {
	return request({
		url: '/admin/goods_copy',
		method: 'post',
		data: params,
	});
};
/**
 * 商品列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsList = (params: object) => {
	return request({
		url: '/admin/goods_list',
		method: 'get',
		params: params,
	});
};
/**
 * 查询商品详情
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsSelect = (params: object) => {
	return request({
		url: '/admin/goods_select',
		method: 'get',
		params: params,
	});
};
/**
 * 查询商品详情 - sku
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsSelectSku = (params: object) => {
	return request({
		url: '/admin/goods_select_sku',
		method: 'get',
		params: params,
	});
};
/**
 * 加或减库存
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsEditStock = (params: object) => {
	return request({
		url: '/admin/goods_edit_stock',
		method: 'post',
		data: params,
	});
};
/**
 * 编辑商品 - 基础信息
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsEdit = (params: object) => {
	return request({
		url: '/admin/goods_edit',
		method: 'post',
		data: params,
	});
};
/**
 * 编辑商品 - sku
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsEditSku = (params: object) => {
	return request({
		url: '/admin/goods_edit_sku',
		method: 'post',
		data: params,
	});
};
/**
 * 禁用和启用商品
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsDisableEnable = (params: object) => {
	return request({
		url: '/admin/goods_disable_enable',
		method: 'post',
		data: params,
	});
};
/**
 * 查询商选择振兴区域
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsTargetList = (params: object) => {
	return request({
		url: '/admin/goods_target_list',
		method: 'get',
		params: params,
	});
};
/**
 * 导出商品
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const goodsExport = (params: object) => {
	return request({
		url: '/admin/goods_export',
		method: 'get',
		params: params,
	});
};
/********** 直播接口 **********/
/**
 * 直播间相关图片上传到微信
 * @param params
 * @returns
 */
export const livesImageUpload = (params: any) => {
	const formdata = new FormData();
	formdata.append('file', params);
	return request({
		url: '/admin/lives_image_upload',
		method: 'post',
		headers: { 'Content-Type': 'multipart/form-data' },
		data: formdata,
	});
};
/**
 * 直播成员列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const livesMemberList = (params: object = {}) => {
	return request({
		url: '/admin/lives_member_list',
		method: 'get',
		params: params,
	});
};
/**
 * 添加直播成员
 * @param params
 * @returns
 */
export const addLivesMember = (params: object = {}) => {
	return request({
		url: '/admin/add_lives_member',
		method: 'post',
		data: params,
	});
};
/**
 * 删除直播成员
 * @param params
 * @returns
 */
export const deleteLivesMember = (params: object = {}) => {
	return request({
		url: '/admin/delete_lives_member',
		method: 'post',
		data: params,
	});
};
/**
 * 直播间列表
 * @param params
 * @returns
 */
export const livesList = (params: object = {}) => {
	return request({
		url: '/admin/lives_list',
		method: 'get',
		params: params,
	});
};
/**
 * 添加直播间
 * @param params
 * @returns
 */
export const addLives = (params: object = {}) => {
	return request({
		url: '/admin/add_lives',
		method: 'post',
		data: params,
	});
};
/**
 * 编辑直播间信息
 * @param params
 * @returns
 */
export const editLives = (params: object = {}) => {
	return request({
		url: '/admin/edit_lives',
		method: 'post',
		data: params,
	});
};
/**
 * 删除直播间信息
 * @param params
 * @returns
 */
export const deleteLives = (params: object = {}) => {
	return request({
		url: '/admin/delete_lives',
		method: 'post',
		data: params,
	});
};
/**
 * 直播商品列表
 * @param params
 * @returns
 */
export const livesGoodsList = (params: object = {}) => {
	return request({
		url: '/admin/lives_goods_list',
		method: 'get',
		params: params,
	});
};
/**
 * 获取可选择提审的商品列表
 * @param params
 * @returns
 */
export const selectLivesGoodsList = (params: object = {}) => {
	return request({
		url: '/admin/select_lives_goods_list',
		method: 'get',
		params: params,
	});
};
/**
 * 提交商品审核
 * @param params
 * @returns
 */
export const livesGoodsListApply = (params: object = {}) => {
	return request({
		url: '/admin/lives_goods_list_apply',
		method: 'post',
		data: params,
	});
};
/**
 * 删除商品
 * @param params
 * @returns
 */
export const livesGoodsListDelete = (params: object = {}) => {
	return request({
		url: '/admin/lives_goods_list_delete',
		method: 'post',
		data: params,
	});
};
/**
 * 获取可导入直播间的商品列表
 * @param params
 * @returns
 */
export const livesGoodsList1 = (params: object = {}) => {
	return request({
		url: '/admin/lives_goods_list1',
		method: 'get',
		params: params,
	});
};
/**
 * 直播间导入选中的商品
 * @param params
 * @returns
 */
export const livesListAddGoods = (params: object = {}) => {
	return request({
		url: '/admin/lives_list_add_goods',
		method: 'post',
		data: params,
	});
};

/********** 订单管理 **********/
/**
 * 选择商品（搜索）
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectGoods = (params: object) => {
	return request({
		url: '/admin/order_select_goods',
		method: 'get',
		params: params,
	});
};
/**
 * 选择机构（搜索）
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectOrganization = (params: object) => {
	return request({
		url: '/admin/order_select_organization',
		method: 'get',
		params: params,
	});
};
/**
 * 振兴目标单位（搜索）
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectTarget = (params: object) => {
	return request({
		url: '/admin/order_select_target',
		method: 'get',
		params: params,
	});
};
/**
 * 选择供应商（搜索）
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectSupplier = (params: object) => {
	return request({
		url: '/admin/order_select_supplier',
		method: 'get',
		params: params,
	});
};
/**
 * 选择用户(搜索)
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectUsers = (params: object) => {
	return request({
		url: '/admin/order_select_users',
		method: 'get',
		params: params,
	});
};
/**
 * 导出售后
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterListExport = (params: object) => {
	return request({
		url: '/admin/after_list_export',
		method: 'get',
		params: params,
	});
};
/**
 * 订单列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderList = (params: object) => {
	return request({
		url: '/admin/order_list',
		method: 'post',
		data: params,
	});
};
/**
 * 订单发货-单个
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderDelivery = (params: object) => {
	return request({
		url: '/admin/order_deliver',
		method: 'post',
		data: params,
	});
};
/**
 * 导出待发货文件
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderExportDeliver = (params: object) => {
	return request({
		url: '/admin/order_export_deliver',
		method: 'get',
		params: params,
	});
};
/**
 * 导出快递编码
 */
export const orderExportShipperCode = (params: object = {}) => {
	return request({
		url: '/admin/order_export_shipper_code',
		method: 'get',
		params: params,
	});
};
/**
 * 查询快递编码
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectShipperCode = (params: object) => {
	return request({
		url: '/admin/order_select_shipper_code',
		method: 'get',
		params: params,
	});
};
/**
 * 查看物流
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectLogistics = (params: object) => {
	return request({
		url: '/admin/order_select_logistics',
		method: 'get',
		params: params,
	});
};
/**
 * 发货前退款
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderRefundApply = (params: object) => {
	return request({
		url: '/admin/order_refund_apply',
		method: 'post',
		data: params,
	});
};
/**
 * 修改快递单号
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderUpdateFreight = (params: object) => {
	return request({
		url: '/admin/order_update_freight',
		method: 'post',
		data: params,
	});
};
/**
 * 导出全部订单
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderExportAll = (params: object) => {
	return request({
		url: '/admin/order_export_all',
		method: 'get',
		params: params,
	});
};
/**
 * 添加订单备注
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderAddRemarks = (params: object) => {
	return request({
		url: '/admin/order_add_remarks',
		method: 'post',
		data: params,
	});
};
/**
 * 查看订单备注
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderSelectRemarks = (params: object) => {
	return request({
		url: '/admin/order_select_remarks',
		method: 'get',
		params: params,
	});
};
/**
 * 备货中转待发货(订单id批量)
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderChangeBeshipped = (params: object) => {
	return request({
		url: '/admin/order_change_beshipped',
		method: 'post',
		data: params,
	});
};
/**
 * 添加订单留言
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const addOrderMessage = (params: object) => {
	return request({
		url: '/admin/add_order_message',
		method: 'post',
		data: params,
	});
};
/**
 * 查询订单留言
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderMessageList = (params: object) => {
	return request({
		url: '/admin/order_message_list',
		method: 'get',
		params: params,
	});
};

/********** 发货记录 **********/
/**
 * 发货记录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderImportJournal = (params: object) => {
	return request({
		url: '/admin/order_import_journal',
		method: 'get',
		params: params,
	});
};
/**
 * 发货记录详情
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderImportJournalLog = (params: object) => {
	return request({
		url: '/admin/order_import_journal_log',
		method: 'get',
		params: params,
	});
};
/**
 * 导出发货失败的订单列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderExportSendFail = (params: object) => {
	return request({
		url: '/admin/order_export_send_fail',
		method: 'get',
		params: params,
	});
};

/********** 售后管理 **********/
/**
 * 查询商品
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterGoodsSelect = (params: object) => {
	return request({
		url: '/admin/after_goods_select',
		method: 'get',
		params: params,
	});
};
/**
 * 售后列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterList = (params: object) => {
	return request({
		url: '/admin/after_list',
		method: 'get',
		params: params,
	});
};
/**
 * 查询待处理数量-售后
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterNumberSelect = (params: object = {}) => {
	return request({
		url: '/admin//after_number_select',
		method: 'get',
		params: params,
	});
};
/**
 * 售后审核（一审）
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterExamine = (params: object) => {
	return request({
		url: '/admin/after_examine',
		method: 'post',
		data: params,
	});
};
/**
 * 查看退换货地址
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterGoodsAddressSelect = (params: object = {}) => {
	return request({
		url: '/admin/after_goods_address_select',
		method: 'get',
		params: params,
	});
};
/**
 * 退款或者拒绝操作
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterOrderSeller1 = (params: object) => {
	return request({
		url: '/admin/after_order_seller1',
		method: 'post',
		data: params,
	});
};
/**
 * 上传快递单号
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterOrderSeller2 = (params: object) => {
	return request({
		url: '/admin/after_order_seller2',
		method: 'post',
		data: params,
	});
};
/**
 * 售后记录
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterOrderRecord = (params: object = {}) => {
	return request({
		url: '/admin/after_order_record',
		method: 'get',
		params: params,
	});
};

/********** 维权管理 **********/
/**
 * 维权列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterRightList = (params: object) => {
	return request({
		url: '/admin/after_rights_list',
		method: 'get',
		params: params,
	});
};
/**
 * 查询待处理数量-维权
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const rightNumberSelect = (params: object = {}) => {
	return request({
		url: '/admin/right_number_select',
		method: 'get',
		params: params,
	});
};
/**
 * 导出维权
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterRightsListExport = (params: object) => {
	return request({
		url: '/admin/after_rights_list_export',
		method: 'get',
		params: params,
	});
};
/**
 * 维权审核
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const afterRightsExamine = (params: object) => {
	return request({
		url: '/admin/after_rights_examine',
		method: 'post',
		data: params,
	});
};
/**
 * 添加留言
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const addOrderAfterMessage = (params: object) => {
	return request({
		url: '/admin/add_order_after_message',
		method: 'post',
		data: params,
	});
};
/**
 * 查询留言
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const orderAafterMessageList = (params: object) => {
	return request({
		url: '/admin/order_after_message_list',
		method: 'get',
		params: params,
	});
};



/********** 供应商货款 **********/
/**
 * 货款列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalList = (params: object = {}) => {
	return request({
		url: '/admin/withdrawal_list',
		method: 'get',
		params: params,
	});
};
/**
 * 订单明细
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierOrder1 = (params: object = {}) => {
	return request({
		url: '/admin/supplier_order',
		method: 'get',
		params: params,
	});
};
/**
 * 审核供应商货款
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalExamine = (params: object) => {
	return request({
		url: '/admin/withdrawal_examine',
		method: 'post',
		data: params,
	});
};

/********** 分销商提现 **********/
/**
 * 待审核
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalToBeReviewed = (params: object = {}) => {
	return request({
		url: '/admin/withdrawal_to_be_reviewed',
		method: 'get',
		params: params,
	});
};
/**
 * 打款中
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalPaymentApproved = (params: object = {}) => {
	return request({
		url: '/admin/withdrawal_payment_approved',
		method: 'get',
		params: params,
	});
};
/**
 * 打款完成
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalApproved = (params: object = {}) => {
	return request({
		url: '/admin/withdrawal_approved',
		method: 'get',
		params: params,
	});
};
/**
 * 审核拒绝
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalAuditRejection = (params: object = {}) => {
	return request({
		url: '/admin/withdrawal_audit_rejection',
		method: 'get',
		params: params,
	});
};
/**
 * 查询可提现金额
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalBalance = (params: object = {}) => {
	return request({
		url: '/admin/withdrawal_balance',
		method: 'get',
		params: params,
	});
};
/**
 * 查看时间
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalSelectTime = (params: object = {}) => {
	return request({
		url: '/admin/withdrawal_select_time',
		method: 'get',
		params: params,
	});
};
/**
 * 审核-打款
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const withdrawalPaymentBatch = (params: object) => {
	return request({
		url: '/admin/withdrawal_payment_batch',
		method: 'post',
		data: params,
	});
};

/********** 系统管理 **********/
/**
 * 系统配置
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const systemConfig = (params: object) => {
	return request({
		url: '/admin/system_config',
		method: 'post',
		data: params,
	});
};

/**
 * 查看系统配置
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const systemConfigSelect = (params: object) => {
	return request({
		url: '/admin/system_config_select',
		method: 'get',
		params: params,
	});
};

/**
 * 界面功能设置
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const systemConfigInterface = (params: object = {}) => {
	return request({
		url: '/admin/system_config_interface',
		method: 'post',
		data: params,
	});
};

/**
 * 查看界面功能设置
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const systemConfigInterfaceSelect = (params: object = {}) => {
	return request({
		url: '/admin/system_config_interface_select',
		method: 'get',
		params: params,
	});
};

/********** 供应商端 **********/
/********** 财务管理 **********/
/**
 * 供应商货款基础信息
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierMoney = (params: object = {}) => {
	return request({
		url: '/supplier/supplier_money',
		method: 'get',
		params: params,
	});
};
/**
 * 货款明细列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierOrder = (params: object = {}) => {
	return request({
		url: '/supplier/supplier_order',
		method: 'get',
		params: params,
	});
};
/**
 * 获取提现基础信息
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierWithdrawalBasics = (params: object = {}) => {
	return request({
		url: '/supplier/supplier_withdrawal_basics',
		method: 'get',
		params: params,
	});
};
/**
 * 货款提现
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierWithdrawal = (params: object) => {
	return request({
		url: '/supplier/supplier_withdrawal',
		method: 'post',
		data: params,
	});
};
/**
 * 货款列表
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierWithdrawalList = (params: object = {}) => {
	return request({
		url: '/supplier/supplier_withdrawal_list',
		method: 'get',
		params: params,
	});
};
/**
 * 撤销申请提现
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierWithdrawalRevoke = (params: object) => {
	return request({
		url: '/supplier/supplier_withdrawal_revoke',
		method: 'post',
		data: params,
	});
};
/**
 * 订单明细
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const supplierOrderDetailed = (params: object = {}) => {
	return request({
		url: '/supplier/supplier_order_detailed',
		method: 'get',
		params: params,
	});
};

/********** 商户入网 **********/
/**
 * 【供应商入网】补发短信/邮箱/电子签章
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const verifyReissue = (params: object) => {
	return request({
		url: '/admin/verify_reissue',
		method: 'post',
		data: params,
	});
};
/**
 * 重置用户商户号
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const usersMchidReset = (params: object) => {
	return request({
		url: '/admin/users_mchid_reset',
		method: 'post',
		data: params,
	});
};
/**
 * 查询订单售后的最大金额
 * @param params 要传的参数值
 * @returns 返回接口数据
 */
export const selectAfterOrderMoney = (params: object) => {
	return request({
		url: '/admin/select_after_order_money',
		method: 'get',
		params: params,
	});
};
/**
 * 初始化售后状态
 * @param params 要传的参数值 sale_id 售后记录id
 * @returns 返回接口数据
 */
export const afterInitialization = (params: object) => {
	return request({
		url: '/admin/after_initialization',
		method: 'post',
		data: params,
	});
};
/**
 * @method goodsSelectClass // 选择商品分类
 * @method goodsList // 商品列表
 * @method goodsSelect // 查询商品详情
 * @method goodsSelectSku // 查询商品详情 - sku
 * @method goodsExport // 商品导出
 * @method orderSelectGoods // 订单选择商品
 * @method orderList // 订单列表
 * @method orderExportAll // 导出全部订单
 * @method goodsIntegralUpdate // 修改商品积分
 */
export const bankApi = () => {
	return {
		goodsSelectClass: (params: object) => {
			return request({
				url: '/bank/goods_select_class',
				method: 'get',
				params: params,
			});
		},
		goodsList: (params: object) => {
			return request({
				url: '/bank/goods_list',
				method: 'get',
				params: params,
			});
		},
		goodsSelect: (params: object) => {
			return request({
				url: '/bank/goods_select',
				method: 'get',
				params: params,
			});
		},
		goodsSelectSku: (params: object) => {
			return request({
				url: '/bank/goods_select_sku',
				method: 'get',
				params: params,
			});
		},
		goodsExport: (params: object) => {
			return request({
				url: '/bank/goods_export',
				method: 'get',
				params: params,
			});
		},
		orderSelectGoods: (params: object) => {
			return request({
				url: '/bank/order_select_goods',
				method: 'get',
				params: params,
			});
		},
		orderList: (params: object) => {
			return request({
				url: '/bank/order_list',
				method: 'post',
				data: params,
			});
		},
		orderExportAll: (params: object) => {
			return request({
				url: '/bank/order_export_all',
				method: 'get',
				params: params,
			});
		},
		goodsIntegralUpdate: (params: object) => {
			return request({
				url: '/bank/goods_integral_update',
				method: 'post',
				data: params,
			});
		},
	};
};

/**
 * @method usersSalesTotalList // 用户-总统计
 * @method usersSalesDateList // 用户-日统计
 * @method usersSalesWeekList // 用户-周统计
 * @method usersSalesMonthList // 用户-月统计
 * @method usersSalesYearList // 用户-年统计
 * @method usersSalesTotalExport // 用户-总统计-导出
 * @method usersSalesDateExport // 用户-日统计-导出
 * @method usersSalesWeekExport // 用户-周统计-导出
 * @method usersSalesMonthExport // 用户-月统计-导出
 * @method usersSalesYearExport // 用户-年统计-导出
 */
export const userStatisticsApi = () => {
	return {
		usersSalesTotalList: (params: object) => {
			return request({
				url: '/admin/users_sales_total_list',
				method: 'get',
				params: params,
			});
		},
		usersSalesDateList: (params: object) => {
			return request({
				url: '/admin/users_sales_date_list',
				method: 'get',
				params: params,
			});
		},
		usersSalesWeekList: (params: object) => {
			return request({
				url: '/admin/users_sales_week_list',
				method: 'get',
				params: params,
			});
		},
		usersSalesMonthList: (params: object) => {
			return request({
				url: '/admin/users_sales_month_list',
				method: 'get',
				params: params,
			});
		},
		usersSalesYearList: (params: object) => {
			return request({
				url: '/admin/users_sales_year_list',
				method: 'get',
				params: params,
			});
		},
		usersSalesTotalExport: (params: object) => {
			return request({
				url: '/admin/users_sales_total_export',
				method: 'get',
				params: params,
			});
		},
		usersSalesDateExport: (params: object) => {
			return request({
				url: '/admin/users_sales_date_export',
				method: 'get',
				params: params,
			});
		},
		usersSalesWeekExport: (params: object) => {
			return request({
				url: '/admin/users_sales_week_export',
				method: 'get',
				params: params,
			});
		},
		usersSalesMonthExport: (params: object) => {
			return request({
				url: '/admin/users_sales_month_export',
				method: 'get',
				params: params,
			});
		},
		usersSalesYearExport: (params: object) => {
			return request({
				url: '/admin/users_sales_year_export',
				method: 'get',
				params: params,
			});
		},
	}
};

/**
 * @method statisticGoodsTotalList // 商品-总统计
 * @method statisticGoodsDateList // 商品-日统计
 * @method statisticGoodsWeekList // 商品-周统计
 * @method statisticGoodsMonthList // 商品-月统计
 * @method statisticGoodsYearList // 商品-年统计
 * @method statisticGoodsTotalExport // 商品-总统计-导出
 * @method statisticGoodsDateExport // 商品-日统计-导出
 * @method statisticGoodsWeekExport // 商品-周统计-导出
 * @method statisticGoodsMonthExport // 商品-月统计-导出
 * @method statisticGoodsYearExport // 商品-年统计-导出
 */
export const goodsStatisticsApi = () => {
	return {
		statisticGoodsTotalList: (params: object) => {
			return request({
				url: '/admin/statistic_goods_total_list',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsDateList: (params: object) => {
			return request({
				url: '/admin/statistic_goods_date_list',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsWeekList: (params: object) => {
			return request({
				url: '/admin/statistic_goods_week_list',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsMonthList: (params: object) => {
			return request({
				url: '/admin/statistic_goods_month_list',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsYearList: (params: object) => {
			return request({
				url: '/admin/statistic_goods_year_list',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsTotalExport: (params: object) => {
			return request({
				url: '/admin/statistic_goods_total_export',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsDateExport: (params: object) => {
			return request({
				url: '/admin/statistic_goods_date_export',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsWeekExport: (params: object) => {
			return request({
				url: '/admin/statistic_goods_week_export',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsMonthExport: (params: object) => {
			return request({
				url: '/admin/statistic_goods_month_export',
				method: 'get',
				params: params,
			});
		},
		statisticGoodsYearExport: (params: object) => {
			return request({
				url: '/admin/statistic_goods_year_export',
				method: 'get',
				params: params,
			});
		},
	}
};

/**
 * @method logisticsStatisticsList // 物流统计列表
 * @method logisticsStatisticsGoodsList // 物流商品统计
 * @method logisticsStatisticsOrderList // 物流订单统计
 * @method logisticsStatisticsOrderExport // 导出物流订单
*/
export const logisticsStatisticsApi = () => {
	return {
		logisticsStatisticsList: (params: object) => {
			return request({
				url: '/admin/logistics_statistics_list',
				method: 'get',
				params: params,
			});
		},
		logisticsStatisticsGoodsList: (params: object) => {
			return request({
				url: '/admin/logistics_statistics_goods_list',
				method: 'get',
				params: params,
			});
		},
		logisticsStatisticsOrderList: (params: object) => {
			return request({
				url: '/admin/logistics_statistics_order_list',
				method: 'get',
				params: params,
			});
		},
		logisticsStatisticsOrderExport: (params: object) => {
			return request({
				url: '/admin/logistics_statistics_order_export',
				method: 'get',
				params: params,
			});
		},
	}
};

/**
 * @method statisticsGoodsSendList // 商品发货统计
 * @method statisticsGoodsDetailsList // 商品发货统计详情
 * @method statisticsGoodsOrderDetailsList // 商品发货订单详情
 * @method statisticsGoodsDetailsExport // 导出商品发货
*/
export const statisticsGoodsSendApi = () => {
	return {
		statisticsGoodsSendList: (params: object) => {
			return request({
				url: '/admin/statistics_goods_send_list',
				method: 'get',
				params: params,
			});
		},
		statisticsGoodsDetailsList: (params: object) => {
			return request({
				url: '/admin/statistics_goods_details_list',
				method: 'get',
				params: params,
			});
		},
		statisticsGoodsOrderDetailsList: (params: object) => {
			return request({
				url: '/admin/statistics_goods_order_details_list',
				method: 'get',
				params: params,
			});
		},
		statisticsGoodsDetailsExport: (params: object) => {
			return request({
				url: '/admin/statistics_goods_details_export',
				method: 'get',
				params: params,
			});
		},
	}
};